package com.eamois.dao.sys;

import java.util.Collection;

import com.eamois.dao.BaseDao;
import com.eamois.domain.sys.Device;
import com.eamois.domain.sys.DeviceType;
import com.eamois.domain.sys.SubMaterial;

public interface DeviceDao extends BaseDao<Device>{
	public Collection<Device> findDevice(DeviceType deviceType);
	public Collection<Device> findAllDevice();
	public Collection<Device> findDevice(String name,String code,boolean isLike);
	public Collection<Device> findDevice(String name,String code,String kind);
	public Collection<Device> findDevice(String name,String code,DeviceType deviceType);
	public Collection<Device> findDevice(String name,String code,String kind,DeviceType deviceType);
	public Collection<Device> findDeviceByNameAndKind(String name,String kind);
	
	Collection<Device> findDevice(String name,String code,String kind,String parameter,String remark);
	
	Collection<String> findDeviceIds();
	boolean findDevice(String id);
	Device findDeviceById(String id);
	
	Collection<Device> findByBelongId( String id);
}
